exponential time algorithm

join shbcf.ru